package com.wondertek.poms.log;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.wondertek.oes.sso.client.EnableMySsoClient;
import com.wondertek.oes.sso.client.store.ehcache.DefaultEhcacheStore;
import com.wondertek.oes.sso.common.contants.enums.SsoClientTypeEnum;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EntityScan("com.wondertek.poms.*")
@ComponentScan(basePackages = {"com.wondertek.poms"})
@EnableMySsoClient(clientType = SsoClientTypeEnum.SimpleClient, cacheStore = DefaultEhcacheStore.class) //SSO接入
@SpringBootApplication
@EnableApolloConfig
@EnableFeignClients(basePackages = {"com.wondertek.poms.*"})
@EnableConfigurationProperties
public class PomsLogApplication {

    public static void main(String[] args) {
        SpringApplication.run(PomsLogApplication.class, args);
    }
}
